﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using S3System.BusinessEntities;

namespace S3System.BusinessLogic.CRM
{

    public enum QueryCustomerOptions
    {
        getAll, 
        getByFirstName, 
        getByLastName,
        getByBrithDate
    }

    [ServiceContract]
    public interface IBCCustomerQueries
    {
        [OperationContract]
        IEnumerable<Customer> GetAll();
        
        [OperationContract]
        string QueryCustomers( QueryCustomerOptions options =  QueryCustomerOptions.getAll, string name  =null, DateTime? birthDate =  null );

        [OperationContract]
        string ValidateConfiguration();
    
    }
}
